package com.knowledge.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
        import com.knowledge.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.knowledge.business.mapper.TYqRecordMapper;
import com.knowledge.business.domain.TYqRecord;
import com.knowledge.business.service.ITYqRecordService;

/**
 * 邀请信息Service业务层处理
 *
 * @author zhaoyk
 * @date 2025-10-14
 */
@Service
public class TYqRecordServiceImpl extends ServiceImpl<TYqRecordMapper,TYqRecord>  implements ITYqRecordService
{
    @Autowired
    private TYqRecordMapper tYqRecordMapper;

    /**
     * 查询邀请信息
     *
     * @param id 邀请信息主键
     * @return 邀请信息
     */
    @Override
    public TYqRecord selectTYqRecordById(String id)
    {
        return tYqRecordMapper.selectTYqRecordById(id);
    }

    /**
     * 查询邀请信息列表
     *
     * @param tYqRecord 邀请信息
     * @return 邀请信息
     */
    @Override
    public List<TYqRecord> selectTYqRecordList(TYqRecord tYqRecord)
    {
        return tYqRecordMapper.selectTYqRecordList(tYqRecord);
    }

    /**
     * 新增邀请信息
     *
     * @param tYqRecord 邀请信息
     * @return 结果
     */
    @Override
    public int insertTYqRecord(TYqRecord tYqRecord)
    {
                tYqRecord.setCreateTime(DateUtils.getNowDate());
            return tYqRecordMapper.insertTYqRecord(tYqRecord);
    }

    /**
     * 修改邀请信息
     *
     * @param tYqRecord 邀请信息
     * @return 结果
     */
    @Override
    public int updateTYqRecord(TYqRecord tYqRecord)
    {
                tYqRecord.setUpdateTime(DateUtils.getNowDate());
        return tYqRecordMapper.updateTYqRecord(tYqRecord);
    }

    /**
     * 批量删除邀请信息
     *
     * @param ids 需要删除的邀请信息主键
     * @return 结果
     */
    @Override
    public int deleteTYqRecordByIds(String[] ids)
    {
        return tYqRecordMapper.deleteTYqRecordByIds(ids);
    }

    /**
     * 删除邀请信息信息
     *
     * @param id 邀请信息主键
     * @return 结果
     */
    @Override
    public int deleteTYqRecordById(String id)
    {
        return tYqRecordMapper.deleteTYqRecordById(id);
    }
}
